package cn.zo01.my_server.common.exception;

import cn.zo01.my_server.common.result.ResultCodeEnum;

public class ReggieException extends RuntimeException{
    private Integer code;

    public ReggieException(Integer code, String message){
        super(message);
        this.code = code;
    }
    public ReggieException(ResultCodeEnum codeEnum){
        super(codeEnum.getMessage());
        this.code = codeEnum.getCode();
    }
}